package functions 
{	import functions.FunctionNode;	/**
	 * @author admin
	 */
	public class ConsFunctionNode extends FunctionNode 
	{
		public function ConsFunctionNode()
		{
			funcname = "cons";	
			functiontype = SPECIALFUNCTION;
		}
		
		override public function getValue( xml : XML, scope : Object ) : XML
		{
			var newXML : XML = <list />;
			var kids : XMLList = xml.children();
			var item:XML = kids.children()[0];
			var list:XML = kids.children()[1].copy();
			list.prependChild( item );
			return list;
		}	}}